package com.naiterui.ehp.bs.file.api.exception;

import lombok.Getter;

/**
 * 文件服务异常code枚举
 *
 * @author yangfuya
 * @since 2021/9/13
 */
@Getter
public enum FileExceptionCodeEnum {

    /**
     * 未鉴权
     */
    FILE_UNAUTHORIZED(401, "401 Unauthorized"),
    /**
     * 资源不可访问
     */
    FILE_NOT_ACCESSIBLE(403, "Resource is not accessible"),
    /**
     * 资源不存在
     */
    FILE_NOT_FOUND(404, "Resource does not exist");

    private final int code;
    private final String msg;

    FileExceptionCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
